public enum ColorEnum {
    RED(1,"红色"),
    YELLOW(2,"黄色"),
    WHITE(3,"白色");

    private int index;
    private String content;

    ColorEnum(int index,String content){

        this.index = index;
        this.content = content;

    }

    public int getIndex(){
        return index;
    }

    public String getContent(){
        return content;
    }
}
